﻿@model IEnumerable<b7.Models.Sanpham>

@{
    ViewBag.Title = "sanpham";
    Layout = "~/Views/Shared/_Shopping.cshtml";
}

<div class="contright">
<div class="mota">
<div class="tieude">Danh sách sản phẩm </div>
@{try
  {
  foreach (var item in Model)
  {
      <div class="show_proc" style="font-family:Tahoma">
        <div class="sp"><a href="#"><img src="../..@Html.DisplayFor(modelItem => item.Anh)" alt="Anh Quang Cao"/></a></div>
        <div class="ten_gia"><span style="font-size:16px;">@Html.ActionLink(item.Name, "chitietsp", new { id=item.SanphamId })</span><br/><span style="text-decoration:line-through; font-size:12px">Gia cu:@Html.DisplayFor(modelItem => item.OldPrice)</span><br/>Gia moi:<span style="font-size:large; color:Red">@Html.DisplayFor(modelItem => item.SalePrice)</span><br/></div>
      </div>
  }
  }
  catch (Exception)
  {
      
      <h1>Không có ảnh</h1>;
  }}    
  </div>  
  </div>

